﻿#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable : 6031)
#include "stack.h"

void test1()
{
	st st;
	stinit(&st);
	stpush(&st, 1);
	stpush(&st, 2);
	stpush(&st, 3);
	stpush(&st, 4);
	
	while (!stempty(&st))
	{
		printf("%d ", sttop(&st));
		stpop(&st);
	}
	stdestroy(&st);
}

int main()
{
    test1();
	return 0;
}